<?php
declare (strict_types = 1);

//商品模块 验证器
// +----------------------------------------------------------------------
// |
// +----------------------------------------------------------------------

namespace app\admin\validate\market;

use think\Validate;

class SeckillTime extends Validate
{

    /**
     * 定义验证规则
     * 格式：'字段名'    =>    ['规则1','规则2'...]
     *
     * @var array
     */

    protected $rule = [
        'names'    => 'require',

    ];

    /**
     * 定义错误信息
     * 格式：'字段名.规则名'    =>    '错误信息'
     *
     * @var array
     */

    protected $message = [
        'names.require'    => '部门名称必填',

    ];

    /**
     * 验证场景
     * 格式：'场景'    =>    ['字段1','字段2'...]
     *
     * @var array
     */

    protected $scene = [
        'add'   =>  ['names'],
        'edit'  =>  ['names'],
    ];


}